﻿1 	private bool Found(int noOfSeats)
2 	{
3 		//MessageBox.Show("found state");
4 		bool done = false;
5 		if (AlgorithmSeats.Count.Equals(noOfSeats))        
6 		{
7 			done = true;
8 		}
9 		else
10		{
11			switch (lastTime)                           
12			{
13				case "middle":
14					locState = LocaterStates.LeftMove;     
15					break;
16				case "left":
17					locState = LocaterStates.RightMove;     
18					break;
19				case "right":
20					locState = LocaterStates.LeftMove;      
21					break;
22			}
23		}
24		return done;                                    
25	}